//
//  ViewController.m
//  LBEasyTableControllerDemo
//
//  Created by 刘文扬 on 2017/9/19.
//  Copyright © 2017年 lianj. All rights reserved.
//

#import "ViewController.h"
#import "LBEasyTableController.h"
#import "LBTestCell.h"
#import <Masonry.h>

@interface ViewController ()

/** tableController*/
@property(nonatomic,strong)LBEasyTableController *tableController;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    [self.view addSubview:self.tableController.tableView];
    [self.tableController.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.insets(UIEdgeInsetsZero);
    }];
    
    self.tableController.listArray = nil;
    
}

-(void)viewDidLayoutSubviews
{
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(LBEasyTableController *)tableController
{
    if (_tableController == nil) {
        
        _tableController = [[LBEasyTableController alloc] initWithClassForCell:[LBTestCell class]];
        _tableController.isAutoCalculateHeight = YES;
        
    }
    return _tableController;
}


@end
